package com.ruoyi.project.lely.bean.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import org.hibernate.validator.constraints.Length;

/**
 * 权限
 *
 * @author luoyong
 */
@Data
@ApiModel("权限 入参DTO")
public class LyPermissionDTO {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("角色ID")
    private Integer roleId;

    @Length(max = 63, message = "权限长度不能超过63位")
    @ApiModelProperty("权限")
    private String permission;

}
